Always parse GTK/GDK/GSK_DEBUG env vars and make some entries available in non-debug...
authorChristoph Reiter <reiter.christoph@gmail.com>
Sat, 14 Nov 2020 07:49:17 +0000 (08:49 +0100)
committerChristoph Reiter <reiter.christoph@gmail.com>
Sun, 15 Nov 2020 10:34:54 +0000 (11:34 +0100)
commitafc73c38ce451f9bd1ae4d918230d1487ba9ae20
tree93231877423bbb302266bd5b8711ed1f9f108fc5
parentf4e1c271eaa5ba98768c73da4c2dbd9a424e79d4
Always parse GTK/GDK/GSK_DEBUG env vars and make some entries available in non-debug mode

Currently GTK can be built with G_ENABLE_DEBUG which enables various debug code and parsing
of those env vars, or without, which instead of parsing them prints a warning if they are set.
While building with G_ENABLE_DEBUG isn't strictly needed it's the only way to make GTK_DEBUG=interactive work,
which is a nice thing to have always.

This enables parsing of those env vars in any case and allows specific values being marked as also
available when not built with G_ENABLE_DEBUG (interactive for example). If not built with G_ENABLE_DEBUG
then all unavailable values will be marked as such in the help output and a note is added that
GTK needs to be built with G_ENABLE_DEBUG to use them, which should help discoverability.
docs/reference/gtk/running.md
gdk/gdk-private.h
gdk/gdk.c
gsk/gskdebug.c
gtk/gtkmain.c